<div id="maincontent">
 
 <%= render :partial => "shared_common_files/data_area_help_bar" %>
 

<h2>My Feeds</h2>
<h5>List of user feeds so far </h5>	
  
    <% for name in [:notice, :warning, :message] %>
    <% if flash[name] %>
      <%= "<div class='message-fatal'> #{flash[name]} </div>" %>
    <% end %>
  <% end %>
  
    <% for name in [:simplemsg] %>
    <% if flash[name] %>
      <%= "<div class='message-justmsg'> #{flash[name]} </div>" %>
    <% end %>
  <% end %>

<div class="list">
	<table>
		<tr>
			<td class="pagination" colspan="5"> 
			     <%=pagination_links @feed_pages%>
			</td>
		</tr>

  <% count=1;%>
  <% for column in Feed.content_columns %>
    <%if(column.human_name!='Guid')%>
    <th><%= column.human_name %></th>
    <% end %>
  <% end %>		
	  <th>Actions</th>
<% count=1;%>	  
 <% rowtype="odd";%>
<% for entry in @feeds %>
  
  <%if(isodd(count))%>
     <% rowtype="odd";%>
  <%else%>
    <% rowtype="even";%>
  <%end%>     
  <tr class="<%=rowtype%>">
  <% for column in @content_columns %>
    <td>
    <% if column.name == "feed_url"%>
        <a href=<%= trimstring(entry.send(column.name),33) %>><%= trimstring(entry.send(column.name),33) %></a>
    <%else%>
        <%= trimstring(entry.send(column.name),33) %>
    <%end%>
    </td>
  <% end %>
    <td><%= link_to image_tag('/themes/odotclassic/images/show.png', :title => 'Details'), :action => "show", :id => entry %>
    <%= link_to image_tag('/themes/odotclassic/images/delete.png', :title => 'Delete'), {:action => "delete", :id => entry}, {:confirm => "Are you sure?"} %>
    <%= link_to image_tag('/themes/odotclassic/images/htmlsfc.png', :title => 'HTMLSFC'), {:action => "htmlsfc", :feedid => entry} %>
    </td>
  </tr>
  <!-- <tr><td colspan="3"><%= link_to "HTML Subscription Form Code", :action => "htmlsfc", :feedid => entry %>  </td></tr> -->
  <% count = count + 1 %>
<% end %>

		
		
	</table>
</div>


<br /><br /><br />
<!-- <td><%= link_to "Create New Feed", :action => "newfeed" %></td> -->
<div class="list">
    <%= start_form_tag({:action => 'newfeed'}, :method=>'get') %>
	<table>
	     <th>Actions</th>
         <tr class="even">
            <td>
                <!-- %= link_if_authorized submit_tag('Create Feed'), {:action => 'newfeed'}  % -->
                <!-- %= link_if_authorized submit_tag('Cancel'), {:controller => "/dashboard" ,:action => 'home'}  % -->
                <%= link_if_authorized image_tag('/themes/odotclassic/images/btn_createfeed.png', :alt => 'Create' ), {:action => 'newfeed'}%>
                <%= link_if_authorized image_tag('/themes/odotclassic/images/btn_cancel.gif', :alt => 'Cancel' ), {:controller=> '/dashboard', :action => 'home'}%>
            </td>
         </tr>        
	</table>
	<%= end_form_tag %>
</div>

</div>


